package com.explore.webflux.demo;

import org.junit.Test;
import reactor.core.publisher.Mono;

import java.util.Arrays;
import java.util.function.LongConsumer;

public class MonoDemo {

    @Test
    public void test001() {

        Mono<String> tom = Mono.just("tom");
        tom.subscribe(System.out::println);
    }

    @Test
    public void test002() {
//        tom.subscribe(System.out::println);
        int[][] directions = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}}; // 右下左上
        System.out.println(Arrays.toString(directions[1]));
    }
}
